package w3_c1_array;

public class Main {
    public static void main(String[] args) {
        int[] scores = new int[]{66, 98, 100};//初始化
        Array<Integer> arr = new Array<>();
        for(int i= 0;i<10;i++)
            arr.addLast(i);
        System.out.println(arr);

        arr.add(1,100);
        System.out.println(arr);

        arr.addFirst(200);
        System.out.println(arr);

        System.out.println(arr.get(3));
        arr.set(0,-1);
        System.out.println(arr);

        arr.remove(1);
        System.out.println(arr);

        arr.removeElement(4);
        System.out.println(arr);

        arr.removeFirst();
        System.out.println(arr);

    }
}
